<?php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity(repositoryClass="App\Repository\UserLiveRepository")
 */
class UserLive
{
    /**
     * @ORM\Id()
     * @ORM\GeneratedValue()
     * @ORM\Column(type="integer")
     */
    private $id;

    /**
     * @ORM\Column(type="integer")
     */
    private $userId;

    /**
     * @ORM\Column(type="integer")
     */
    private $liveId;

    /**
     * @ORM\Column(type="string", length=32, nullable=true)
     */
    private $addtime;

    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    private $payLogId;

    public function getId()
    {
        return $this->id;
    }

    public function getUserId(): ?int
    {
        return $this->userId;
    }

    public function setUserId(int $userId): self
    {
        $this->userId = $userId;

        return $this;
    }

    public function getLiveId(): ?int
    {
        return $this->liveId;
    }

    public function setLiveId(int $liveId): self
    {
        $this->liveId = $liveId;

        return $this;
    }

    public function getAddtime(): ?string
    {
        return $this->addtime;
    }

    public function setAddtime(?string $addtime): self
    {
        $this->addtime = $addtime;

        return $this;
    }

    public function getPayLogId(): ?int
    {
        return $this->payLogId;
    }

    public function setPayLogId(?int $payLogId): self
    {
        $this->payLogId = $payLogId;

        return $this;
    }
}
